package com.sxjh.entity.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class FinancialRepostResult {
  @ApiModelProperty("产品名称")
  private String materialName;

  @ApiModelProperty("派车单号")
  private String orderNo;

  @ApiModelProperty("车牌号")
  private String plateNumber;

  @ApiModelProperty("进厂时间")
  private String factoryInTime;

  @ApiModelProperty("出厂时间")
  private String factoryOutTime;

  @ApiModelProperty("公司名称")
  private String companyName;

  @ApiModelProperty("实收数量")
  private BigDecimal weighbridgeWeight;

  @ApiModelProperty("水分扣重")
  private BigDecimal moistureDeduction;

  @ApiModelProperty("水分")
  private BigDecimal moisture;

  @ApiModelProperty("结算单价")
  private BigDecimal settlementPrice;

  @ApiModelProperty("金额")
  private BigDecimal money;


  @ApiModelProperty("垫付运费")
  private BigDecimal advance;

  @ApiModelProperty("装车费")
  private BigDecimal assembleMoney;

  @ApiModelProperty("包装费")
  private BigDecimal pack;

  @ApiModelProperty("专线费")
  private BigDecimal special;

  @ApiModelProperty("其他")
  private BigDecimal other;

  @ApiModelProperty("合计")
  private BigDecimal moneySum;

//  @ApiModelProperty("结算日期")
//  private LocalDate factoryOutTime;

  public BigDecimal getWeighbridgeWeight() {
    if ("".equals(weighbridgeWeight) || weighbridgeWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return weighbridgeWeight;
  }

  public BigDecimal getMoney() {
    if ("".equals(money) || money == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return money;
  }

  public BigDecimal getSettlementPrice() {
    if ("".equals(settlementPrice) || settlementPrice == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPrice;
  }

  public BigDecimal getAssembleMoney() {
    if ("".equals(assembleMoney) || assembleMoney == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return assembleMoney;
  }

  public BigDecimal getMoneySum() {
    if ("".equals(moneySum) || moneySum == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return moneySum;
  }

  public BigDecimal getAdvance() {
    if ("".equals(advance) || advance == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return advance;
  }

  public BigDecimal getSpecial() {
    if ("".equals(special) || special == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return special;
  }

  public BigDecimal getPack() {
    if ("".equals(pack) || pack == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return pack;
  }

  public BigDecimal getOther() {
    if ("".equals(other) || other == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return other;
  }

}
